package com.example.es_demo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
public class IndexController {

    @GetMapping({"/","/index"})
    public String index(){
        return "index";
    }

    // 其他控制器和页面

    public String otherPage(){
        return "otherPage";
    }
}
